package com.crm.web.controller;

import com.crm.service.IRoleService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@Controller
@RequestMapping(value ="/right")
public class RightController {
    @Resource
    private IRoleService roleService;
    @RequestMapping(value = "/reload")
    public String reload(){
        //权限刷新
        roleService.reloadFilterChainDefinitions();
        return "redirect:/main";//重定向到main页面
    }
}
